﻿using FluentNHibernate.Mapping;
using SportWebShop.Data.Entities;

namespace SportWebShop.Data.Mapping
{
	public class ProductMap : ClassMap<Product>
	{
		public ProductMap()
		{
			Id(x => x.Id);
			Map(x => x.Name);
			Map(x => x.Description);
			Map(x => x.Price);
			References(x => x.Category).Cascade.All();
		}
	}
}
